package com.is.common.base;

import android.content.Context;

import com.is.common.rx.RxManager;


/**
 * des basePresenter
 * Created by Administrator on 2017/3/29 0029.
 */

public abstract class BasePresenter<T, E> {
    public Context mContext;
    public E mModel;
    public T mView;
    public RxManager mRxManager = new RxManager();

    public void setVM(T v, E m) {
        this.mView = v;
        this.mModel = m;
        this.onStart();
    }

    public  void onStart(){

    }

    public void onDestroy() {
        mRxManager.clear();
    }

}
